package java基础.struct;

import java.util.Scanner;

/**
 * @author IT_Jay
 * @date 2021/12/11 22:11
 */

public class Demo02 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入内容：");
        String s = scanner.nextLine();
        if (s.equals("Hello")) {  //equals:判断字符串是否相等，少用==
            System.out.println(s);
        }
        System.out.println("End");


        scanner.close();
    }
}
